<%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2018/5/18
  Time: 16:04
  To change this template use File | Settings | File Templates.
--%>
<%--<%@ page contentType="text/html;charset=UTF-8" language="java" %>--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<html>
<head>
    <title>Title</title>
    <%@include file="/styles/common/cssStyle.jsp" %>
</head>
<body>
<form method="post" action="<%=basePath%>role/RoleInsert" enctype="multipart/form-data" >
    <fieldset>
        <legend>添加人员</legend>
        <label>用户名</label>
        <input type="text" placeholder="请输入用户名" name="username"><br/>
        <label>密码</label>
        <input type="password" placeholder="请输入密码" name="password"><br/>
        <label>头像</label>
        <input type="file" name="file" placeholder="请选择头像"/><br/>
        <label>姓名</label>
        <input type="text" placeholder="请输入姓名" name="name"><br/>
        <label>性别</label>
        <input type="radio" value="1" name="sex"/>男
        <input type="radio" value="2" name="sex"/>女<br/>
        <label>生日</label>
        <input type="text" placeholder="请选择日期" onclick="WdatePicker()" name="brithday">

        <br/>
        <label>电话</label>
        <input type="text" placeholder="请输入电话" name="phone"><br/>
        <label>是否停用</label>
        <input type="radio" value="2" name="disable"/>是
        <input type="radio" value="1" name="disable"/>否<br/>
        <button type="submit" class="btn btn-success radius">添加</button>
        <input class="btn btn-success radius" type="button" value="&nbsp;&nbsp;返回&nbsp;&nbsp;" onclick="closeLayer()" />
    </fieldset>
</form>
</body>
<%@include file="/styles/common/jsStyle.jsp"%>
<script type="text/javascript">
    // 关闭窗口
    function closeLayer(){
        var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
        parent.layer.close(index);
        return true;
    }
</script>
</html>
